package com.jia.common.lang;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum ResponseEnum {

    SUCCESS(200, "成功"),
    ERROR(400, "请求错误"),
    ERROR_UN_AUTH(401, "未授权"),
    ERROR_NO_PERMISSION(403, "没有权限"),
    ERROR_UN_EXIT(404, "没有资源"),
    ERROR_DATA(415, "数据库错误"),
    ERROR_SERVICE(500, "服务器错误")
    ;

    private Integer code;
    private String message;
}
